<?php
 
function smarty_modifier_time_added($iTime)
{
	$daysSent = str_replace("-", "", round((strtotime(date("Y-m-d", $iTime)) - strtotime(date("Y-m-d"))) / (60 * 60 * 24)));
	return ($daysSent == "0" ? App::format('Smarty.today') : App::format('Smarty.days_ago', $daysSent));
}

?>